﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace TDD_UnoGame
{
    public class Player
    {
        public List<ICard> Cards { get; set; }

        public Player(List<ICard> cards)
        {
            Cards = cards;
        }

        public bool CompareCards(ICard CardToCompare)
        {
            foreach (var card in Cards)
            {
                if (card.Color == CardToCompare.Color || card.Number == CardToCompare.Number)
                {
                    return true;
                }
            }
            return false;
        }
    }
}
